﻿<?php
    @session_start();
    //echo $_SESSION["TenDangNhap"];
	include ("lib/DataProvider.php");

	if(isset($_GET['a']) == true)
		$a = $_GET['a'];
	else
		$a = 1;
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<!--:::::::HEAD:::::::-->

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Book Exchange</title>

</head>
<!--:::::::END HEAD:::::::-->


<body>
<!--:::::::CSS:::::::-->
        <!-- Bootstrap styles -->
        <link rel="stylesheet" href="css/boostrap.css" />
        <link rel="stylesheet" href="css/boostrap_responsive.css" />
        <!-- Font Awesome styles (icons) -->
        <link rel="stylesheet" href="css/font_awesome.css" />
        <!-- Main Template styles -->
        <link rel="stylesheet" href="css/styles.css" />
        <!-- Your custom styles (blank file) -->
        <link rel="stylesheet" href="css/mystyles.css" />

<!--:::::::END CSS:::::::-->

<!--:::::: Scripts queries ::::::-->

		<script type="text/javascript" src="js/jquery-1.7.1.min.js" ></script>
        <script type="text/javascript" src="js/boostrap.min.js"></script>
        <script type="text/javascript" src="js/nivo_slider.min.js"></script>
        <script type="text/javascript" src="js/jquery.flexslider.js"></script>
        <script type="text/javascript" src="js/flexnav.min.js"></script>
        <script type="text/javascript" src="js/magnific.min.js"></script>
        <script type="text/javascript" src="js/jquery.shorten.js"></script>

        <!-- Custom scripts -->
        <script src="js/custom.js"></script>
        <!--basket-->
        <script src="js/cart.js"></script>
        <!--toast message-->
        <link href="js/toast/resources/css/jquery.toastmessage.css" rel="stylesheet" />
        <script src="js/toast/javascript/jquery.toastmessage.js"></script>
        <!--Calendar-->
        <link href="js/calendar/jquery-ui.css" rel="stylesheet" />
        <script src="js/calendar/jquery-ui.js"></script>
        <!-- Srcipt chuyển ảnh, tìm kiếm, take a tour, quên mật khẩu, nâng cấp gói, lấy lại mật khẩu. Tuy nhiên 1 vài cái chạy không được nên cần làm lại   -->
        <link rel="stylesheet" href="/css/prettyPhoto.css" type="text/css" media="screen" title="prettyPhoto main stylesheet" charset="utf-8" />
        <script src="/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
        <script type="text/javascript" src="js/ChuyenAnh.js"> </script>
<!--:::::: End Scripts queries ::::::-->


<!-- //////////////////////////////////
    //////////////MAIN HEADER/////////////
    ////////////////////////////////////-->
<header class="main">
    <div class="container">
        <div class="row">

<!-- Logo-->
            <div class="span2">
                <a href="/">
                    <img src="img/logo-2014.png" alt="logo ibookstop" title="ibookstop" class="logo" />
                </a>
            </div>

<!-- Header Left & Search-->
            <div class="span6">
                <?php
                    include("pages/pHeaderLeft.php");
                    include("pages/pSearch.php");
                ?>
            </div>

<!-- Header Right -->
            <div class="span4">
                <?php
                    include("pages/pHeaderRight.php");
                ?>
            </div>
        </div>
    </div>
</header>

<!-- Form thông báo - Không dùng-->


<!-- //////////////////////////////////
    //////////////Left Container//////////
    ////////////////////////////////////-->
<div class="gap"></div>

<!-- :::::::::::::::::Menu::::::::::::::::: -->
<div class="container">
    <div class="row">
        <div class="span3">
                <?php
                    include("pages/pMenu.php");
                ?>
            <div class="gap-mini"></div>

<!-- :::::::::::::::::Tin Tức::::::::::::::::::: -->
                <?php
                    include("pages/pNews.php");
                ?>
            <div class="gap-mini"></div>

<!-- :::::::::::::::::Blog::::::::::::::::::: -->
                <?php
                    include("pages/pBlog.php");
                ?>

            <div class="gap-mini"></div>


<!-- :::::::::::::::::Mạng xã hội::::::::::::::::::: Không dùng-->

            <div class="gap"></div>

        </div> <!-- End span3 -->


<!-- //////////////////////////////////
    //////////////MAIN Container//////////
    ////////////////////////////////////-->
        <div class="span9">
        <?php
            switch ($a) {
                case 1:
                    include("pages/pSlidebar.php");
                    include("pages/pIndex.php");
                    break;
                case 2:
                    include("pages/pExRegister.php");
                    break;
                case 3:
                    include("pages/pExLogin.php");
                    break;
                case 4:
                    include("pages/pExForgotPass.php");
                    break;
                case 5:
                    include("pages/pChiTietSach.php");
                    break;
                case 6:
                    include("pages/pDanhMucSach.php");
                    break;
                default:
                    include("pages/pError.php");
                    break;
            }
        ?>
        <div class="gap"></div>

        </div>


    </div>
</div>

 <!-- //////////////////////////////////
    //////////////FOOTER/////////////
    ////////////////////////////////////-->
    <footer class="main">
        <?php
            include("pages/pFooter.php");
        ?>
    </footer>
     <!-- //////////////////////////////////
    //////////////END FOOTER/////////////
    ////////////////////////////////////-->
</body>
</html>
